package com.xinmachong.springcloud.service;

import com.xinmachong.springcloud.entities.Payment;
import com.xinmachong.springcloud.mapper.PaymentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author meyer@HongYe
 */
@Service
public class PaymentService {

    @Resource
    private PaymentMapper paymentMapper;

    public int create(Payment payment) {
        return paymentMapper.create(payment);
    }

    public Payment getPaymentById(Long id) {
        return paymentMapper.getPaymentById(id);
    }
}
